#ifndef TEXTURE_H
#define TEXTURE_H
#include "Color.h"
#include "Ray.h"
#include <string>
#include <vector>
class Texture
{
public:
	Texture(Color* bitmap, int width, int height);
	Texture() : m_Bitmap(NULL), m_Width(0), m_Height(0) {};
	void readImage(std::string file);
	Color* GetBitmap() { return m_Bitmap; }
	Color GetPixel(double u, double v);
	int GetWidth() { return m_Width; }
	int GetHeight() { return m_Height; }
	bool hasTexture() { return (m_Bitmap != NULL); }
private:
	Color* m_Bitmap;
	int m_Width, m_Height;
};
#endif
